package cc.chenwenxi.mypi.autoconfig;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;

/**
 * @author chenwenxi
 */
@Data
@Lazy
@Component
@ConfigurationProperties(prefix = "spring")
public class SpringConfig {
	private Application application;
	private Profiles profiles;
	private String dataPath;

	@Data
	public static class Profiles{
		private String active;
	}

	@Data
	public static class Application{
		private String name;
	}

}